#include <stdio.h>
#include<unistd.h>  
#include<sys/types.h>  
#include <pthread.h>
#include <sys/time.h>



#define MAX_THREAD 4


int print_pid()
{
    struct timeval time_now;
    gettimeofday(&time_now,NULL);
    pid_t pid =getpid();
    int time_second= (time_now.tv_sec + time_now.tv_usec)  ;
    printf("%ld: %d\n",time_second,pid);
    return pid;
}

int main(int agrc,char* agrv[])
{
    pthread_t pthreads[MAX_THREAD];

    fork();
    struct timeval time_now;
    gettimeofday(&time_now,NULL);
    int time_second= time_now.tv_usec * 10000000 ;
    printf("%ld:%d\n",time_second,getpid());
    for(int i=0;i<MAX_THREAD;i++)
    {
        int ret=pthread_create(&pthreads[i],NULL,print_pid,NULL);
    
    }
    // fork();
    return 1;

}